package com.example.demo.enums;

/**
 * 返回状态.
 */
public enum ResultStatue {

    SUCCESS("00","success"),
    ERROE("01","failed"),
    LOGIN_USER_NULL("02","用户名不存在"),
    REGISTER_USER_INUSE("03","用户名已被注册"),
    LOGIN_ERROR("04","用户名或者密码错误");

    private String code;
    private String msg;

    private ResultStatue(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
